<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ElementUI</title>
    <!-- 引入Vue -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <!-- 图标库 -->
     <script src="https://unpkg.com/@element-plus/icons-vue"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css"/>
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-plus"></script>
     
</head>
<body>
    <div id="Application" style="text-align: center;">
        <div style="margin: 40px;"><el-tag>这里是模板的内容:{{count}}次点击</el-tag></div>
        <div><el-button v-on:click="clickButton">按钮</el-button></div>
        <el-button type="primary" icon="Share"></el-button>
        <el-button type="primary" icon="Delete"></el-button>
        <el-button type="primary" icon="Search">图标在前</el-button>
        <el-button type="primary">图标在后Upload<el-icon class="el-icon--right"><Upload /></el-icon></el-button>


        <el-input v-model="value" type="text">
          <template #prepend>Http://</template>
          <template #append>.com</template>
        </el-input>
    </div>
    <script>
        const App = {
            data() {
                return {
                    count:0,
                }
            },
            methods: {
                clickButton() {
                    this.count = this.count + 1
                }
            }
        }
        let instance = Vue.createApp(App)
        instance.use(ElementPlus)
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            instance.component(key, component)
        }
        instance.mount("#Application") 
    </script>
</body>
</html>


